from django.db import models

class Record(models.Model):
	# {'group': '--其他', 'price': '金额', 'type': '账目名称', 'time': '时间'}
	NAME = models.CharField('项目名称',max_length=30)
	TIME = models.BigIntegerField('时间')
	PRICE= models.FloatField('金额')
	GROUP= models.CharField('组别', max_length=30)

	def __str__(self):
		return self.NAME
class Account(models.Model):
	name  = models.CharField('项目名称',max_length=30)
	time  = models.BigIntegerField('时间')
	price = models.FloatField('金额')
	group = models.CharField('组别',max_length=30)

	def __str__(self):
		return self.name

class Group(models.Model):
	name = models.CharField( '组名称', max_length=30 )
	item = models.CharField( '项目名称', max_length=30 )

	def __str__(self):
		return self.name